<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ include file="/WEB-INF/jsp/common/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>test</title>

</head>
<body>
	<form:form method="post" name="customer">
		<c:forEach items="${list}" var="customer" varStatus="i">

			<input name="customers[${i.index }].id" value="${customer.id }"
				style="width: 350px">
			<input name="customers[${i.index }].fax" value="${customer.fax }">
			<input value="${fn:length(list) }">


		</c:forEach>
		<input type="button" onclick="doSubmit()" value="提交">
	</form:form>

	<script type="text/javascript">
		function doSubmit() {
			alert("jack!");
			customer.action = "<c:url value='/customer/testList'/>";
			customer.submit();
		}
	</script>
</body>
</html>